package com.example.pojo;

import com.example.util.Payment;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class PayLog implements Serializable {
    private Integer id;

    public final static int pay_status_waiting=0;//待支付
    public final static int   pay_status_paid=1;//已支付
    public final static int Pay_status_refunded=2;//已退款  全额退款
    public final static int pay_status_closed=3;//已关闭
    public final static int pay_full_refund=6;//部分退款
    private final static long seriaLVAERSIONUID=1L;
    /*
    支付记录实体类
     */
    //修改了

    private String sn;//支付编号
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdtime;//创建时间

    private String  pay_sn;///支付宝平台交易号
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
       private  Date Timetopay;//支付的时间
    private double total_amount;//支付金额
    private String title;//支付订单标题
    private String info;//支付订单详情
    private Integer status;//订单的状态

    private Payment paymen;
    private String refund_info;//退款原因
    private double refund_amount;//退款的金额
    private String refundsn_sn;//退款编号t;//支付方式

}
